package org.mspring.platform.dao.query.criterion;

import org.mspring.platform.dao.query.QueryBuilder;

/**
 *
 * @since 2014-03-27 11:03:01
 * @author Gao Youbo
 */
public class NotNullExpression implements Criterion {

    private static final long serialVersionUID = -6694558446722320341L;
    private String hqlName;

    protected NotNullExpression(String hqlName) {
        this.hqlName = hqlName;
    }

    @Override
    public String toHqlString(QueryBuilder paramQueryBuilder) {
        return new StringBuilder().append(hqlName).append(" is not null ").toString();
    }

}
